﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

/// <summary>
/// 设备
/// </summary>
[Index("ec_d_guid", Name = "idxlguid")]
public partial class iot_device_linkage_execute_record
{
    [Key]
    public long ec_id { get; set; }

    /// <summary>
    /// 设备ID
    /// </summary>
    public string ec_d_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? ec_add_time { get; set; }

    /// <summary>
    /// 0自动运行，1手动运行
    /// </summary>
    public int ec_execute_type { get; set; }

    /// <summary>
    /// iot_device_linkage
    /// </summary>
    [StringLength(50)]
    public string ec_l_guid { get; set; }

    /// <summary>
    /// 执行批次编号，避免被多个线程取值
    /// </summary>
    [StringLength(255)]
    public string ec_execute_lock_code { get; set; }
}
